package com.thread;

import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.atomic.AtomicInteger;

public class TestDemo {

    public static void main(String[] args) {

        AtomicInteger integer = new AtomicInteger(0);
        for (int i = 0; i < 10; i++) {
            System.out.println(integer.getAndAdd(2));
        }
    }

}
